// 1级分类接口
export interface FirstCtgy {
  firstctgyId: number
  firstctgyname: string
}

// 2级分类接口
export interface SecondCtgy {
  secondctgyid: number
  secctgyname: string
  // 存储所有子项三级分类
  thirdctgys: ThirdCtgy[]
  // 存储当前子项5个三级分类
  subThirdCtgys: ThirdCtgy[]
  // 是否准备展开
  isReadyOpen: boolean
}

// 3级分类接口
export interface ThirdCtgy {
  thirdctgyid: number
  thirdname: string
}

// 分类接口
export interface CtgyState {
  firstCtgyList: FirstCtgy[],
  secondCtgyList: SecondCtgy[]
}

// 分类 state 状态
export const initCtgyState: CtgyState = {
  firstCtgyList: [],
  secondCtgyList: []
}

